<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--第一：自定义最小单位名称，一般是模块对象名字student,studentStat是状态对象-->
<!--<div th:each="student:${studentList}">-->
    上默认同下    <div th:each="student,studentStat:${studentList}">


<!-- if  odd测验
        th:if="${xxx eq 1}"
        xx:unless="${xxx ne 2}"-->
    <div th:if="${studentStat.odd}">
<!--    <div th:if="${student.id eq 103}">-->

        <span style="color: red">odd双数:</span>
        <span th:text="${student.id}"></span>
        <span th:text="${student.address}"></span>
        <span th:text="${student.nick}"></span>
        <span th:text="${student.phone}"></span>
    </div>


<!--    <span style="color: red">even单数:</span>-->
<!--    <span th:text="${studentStat.even}"></span>-->
<!--    <span style="color: red">odd双数:</span>-->
<!--    <span th:text="${studentStat.odd}"></span>-->
<!--    <span style="color: red">index:</span>-->
<!--    <span th:text="${studentStat.index}"></span>-->
<!--    <span style="color: red">count:</span>-->
<!--    <span th:text="${studentStat.count}"></span>-->
<!--    <span style="color: red">.size</span>-->
<!--    <span th:text="${studentStat.size}"></span>-->
<!--    <span style="color: red">.current</span>-->
<!--    <span th:text="${studentStat.current}"></span>-->
<!--    <span style="color: red">对象的属性</span>-->
<!--    <span th:text="${student.id}"></span>-->
<!--    <span th:text="${student.address}"></span>-->
<!--    <span th:text="${student.nick}"></span>-->
<!--    <span th:text="${student.phone}"></span>-->


</div>
</body>
</html>